package tools;
import java.util.LinkedList;
public class UrlQueue {
	/**超链接队列*/
	public static LinkedList urlQueue = new LinkedList();
	/**队列中对应最多的超链接数量*/
	public static final int MAX_SIZE = 10000;
	public synchronized static void addElem(String url){
		urlQueue.add(url);
	}
	public synchronized static String outElem(){
		return urlQueue.removeFirst().toString();
	}
	public synchronized static boolean isEmpty(){
		return urlQueue.isEmpty();
	}
	public static int size(){
		return urlQueue.size();
	}
	public static boolean isContains(String url){
		return urlQueue.contains(url);
	}
}
